package com.atguigu.gulimail.order;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/*
* 使用rabbitmq
* 1。引入amqp依赖
* 2.给容器中自动配置了RabbitTemplate AmqpAdmin
* 3。给配置文件中配置 spring.rabbitmq信息
* 4.使用@EnableRabbit注解
* 5。监听消息，使用@RabbitListener 必须有@EnableRabbit注解才能使用，监听的队列也必须存在
* */
@SpringBootApplication
@EnableRabbit
@EnableDiscoveryClient
@EnableRedisHttpSession
@EnableFeignClients
public class GulimailOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimailOrderApplication.class, args);
    }

}
